﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MensUnoShop.Models
{
    public interface ITradeInDiscount
    {
        int DEPRICE { set; get; }
        string TITLE { set; get; }
        Config.OrderDiscountType SKTYPE { set; get; }

        /// <summary>
        /// 取得折扣金額
        /// </summary>
        void GetDiscount();

        /// <summary>
        /// 交易前需確定扣除，如果扣除失敗要回補金額
        /// </summary>
        bool SetDiscount(string txid);

        /// <summary>
        /// 交易失敗處理
        /// </summary>
        void DealFail(string txid);
    }
}
